package Generricity2;

import java.util.ArrayList;

public class Generricity2 {
    public static void main(String[] args) {
        ArrayList<Lx2> cars = new ArrayList<Lx2>();
        cars.add(new Lx2());
        go(cars);
        ArrayList<Xiaomi2> cars2 = new ArrayList<Xiaomi2>();
        cars2.add(new Xiaomi2());
        go(cars2);
        ArrayList<Dog2> cars3 = new ArrayList<Dog2>();
        cars3.add(new Dog2());
//        go(cars3);
    }
    public static void go (ArrayList<? extends Car2> cars) {

    }
}
